function log(e){window.console&&showLog&&console.log(e)}function css_browser_selector(e){function t(){var e=window.outerWidth||b.clientWidth,t=window.outerHeight||b.clientHeight;r.orientation=e=o[n]){r.maxw=o[n];break}for(var i in widthClasses="",r)widthClasses+=" "+i+"_"+r[i];return b.className=b.className+widthClasses,widthClasses}function n(){var e=1")).appendTo(t.documentElement))[0].contentDocument).write(),t.close(),n=a(e,t),Me.detach()),He[e]=n),n}function y(e,t,n){var i,r,o,a,s=e.style;return(n=n||We(e))&&(a=n.getPropertyValue(t)||n[t]),n&&(""!==a||J.contains(e.ownerDocument,e)||(a=J.style(e,t)),Ve.test(a)&&Fe.test(t)&&(i=s.width,r=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=i,s.minWidth=r,s.maxWidth=o)),a!==undefined?a+"":a}function S(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}function x(e,t){if(t in e)return t;for(var n=t[0].toUpperCase()+t.slice(1),i=t,r=Xe.length;r--;)if((t=Xe[r]+n)in e)return t;return i}function T(e,t,n){var i=Be.exec(t);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):t}function C(e,t,n,i,r){for(var o=n===(i?"border":"content")?4:"width"===t?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=J.css(e,n+Se[o],!0,r)),i?("content"===n&&(a-=J.css(e,"padding"+Se[o],!0,r)),"margin"!==n&&(a-=J.css(e,"border"+Se[o]+"Width",!0,r))):(a+=J.css(e,"padding"+Se[o],!0,r),"padding"!==n&&(a+=J.css(e,"border"+Se[o]+"Width",!0,r)));return a}function E(e,t,n){var i=!0,r="width"===t?e.offsetWidth:e.offsetHeight,o=We(e),a="border-box"===J.css(e,"boxSizing",!1,o);if(r<=0||null==r){if(((r=y(e,t,o))<0||null==r)&&(r=e.style[t]),Ve.test(r))return r;i=a&&(X.boxSizingReliable()||r===e.style[t]),r=parseFloat(r)||0}return r+C(e,t,n||(a?"border":"content"),i,o)+"px"}function P(e,t){for(var n,i,r,o=[],a=0,s=e.length;ax.cacheLength&&delete n[i.shift()],n[e+" "]=t}var i=[];return n}function l(e){return e[j]=!0,e}function r(e){var t=A.createElement("div");try{return!!e(t)}catch(i){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function e(e,t){for(var n=e.split("|"),i=e.length;i--;)x.attrHandle[n[i]]=t}function c(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||G)-(~e.sourceIndex||G);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function t(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function o(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function a(a){return l(function(o){return o=+o,l(function(e,t){for(var n,i=a([],e.length,o),r=i.length;r--;)e[n=i[r]]&&(e[n]=!(t[n]=e[n]))})})}function p(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function s(){}function g(e){for(var t=0,n=e.length,i="";t+~]|"+ne+")"+ne+"*"),ue=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),he=new RegExp(ae),fe=new RegExp("^"+re+"$"),pe={ID:new RegExp("^#("+ie+")"),CLASS:new RegExp("^\\.("+ie+")"),TAG:new RegExp("^("+ie.replace("w","w*")+")"),ATTR:new RegExp("^"+oe),PSEUDO:new RegExp("^"+ae),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},ge=/^(?:input|select|textarea|button)$/i,me=/^h\d$/i,ve=/^[^{]+\{\s*\[native \w/,we=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ke=/[+~]/,be=/'|\\/g,ye=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),xe=function(e,t,n){var i="0x"+t-65536;return i!=i||n?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},Se=function(){O()};try{Q.apply(K=J.call(M.childNodes),M.childNodes),K[M.childNodes.length].nodeType}catch(Te){Q={apply:K.length?function(e,t){Y.apply(e,J.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}for(m in v=b.support={},T=b.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},O=b.setDocument=function(e){var t,n,l=e?e.ownerDocument||e:M;return l!==A&&9===l.nodeType&&l.documentElement?(I=(A=l).documentElement,(n=l.defaultView)&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",Se,!1):n.attachEvent&&n.attachEvent("onunload",Se)),N=!T(l),v.attributes=r(function(e){return e.className="i",!e.getAttribute("className")}),v.getElementsByTagName=r(function(e){return e.appendChild(l.createComment("")),!e.getElementsByTagName("*").length}),v.getElementsByClassName=ve.test(l.getElementsByClassName),v.getById=r(function(e){return I.appendChild(e).id=j,!l.getElementsByName||!l.getElementsByName(j).length}),v.getById?(x.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&N){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},x.filter.ID=function(e){var t=e.replace(ye,xe);return function(e){return e.getAttribute("id")===t}}):(delete x.find.ID,x.filter.ID=function(e){var n=e.replace(ye,xe);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}}),x.find.TAG=v.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):v.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},x.find.CLASS=v.getElementsByClassName&&function(e,t){if(N)return t.getElementsByClassName(e)},D=[],$=[],(v.qsa=ve.test(l.querySelectorAll))&&(r(function(e){I.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&$.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||$.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+j+"-]").length||$.push("~="),e.querySelectorAll(":checked").length||$.push(":checked"),e.querySelectorAll("a#"+j+"+*").length||$.push(".#.+[+~]")}),r(function(e){var t=l.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&$.push("name"+ne+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||$.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),$.push(",.*:")})),(v.matchesSelector=ve.test(z=I.matches||I.webkitMatchesSelector||I.mozMatchesSelector||I.oMatchesSelector||I.msMatchesSelector))&&r(function(e){v.disconnectedMatch=z.call(e,"div"),z.call(e,"[s!='']:x"),D.push("!=",ae)}),$=$.length&&new RegExp($.join("|")),D=D.length&&new RegExp(D.join("|")),t=ve.test(I.compareDocumentPosition),q=t||ve.test(I.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},B=t?function(e,t){if(e===t)return L=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!v.sortDetached&&t.compareDocumentPosition(e)===n?e===l||e.ownerDocument===M&&q(M,e)?-1:t===l||t.ownerDocument===M&&q(M,t)?1:R?ee(R,e)-ee(R,t):0:4&n?-1:1)}:function(e,t){if(e===t)return L=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e===l?-1:t===l?1:r?-1:o?1:R?ee(R,e)-ee(R,t):0;if(r===o)return c(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?c(a[i],s[i]):a[i]===M?-1:s[i]===M?1:0},l):A},b.matches=function(e,t){return b(e,null,null,t)},b.matchesSelector=function(e,t){if((e.ownerDocument||e)!==A&&O(e),t=t.replace(ue,"='$1']"),v.matchesSelector&&N&&(!D||!D.test(t))&&(!$||!$.test(t)))try{var n=z.call(e,t);if(n||v.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(Te){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ye,xe),e[3]=(e[3]||e[4]||e[5]||"").replace(ye,xe),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||b.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&b.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return pe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&he.test(n)&&(t=C(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ye,xe).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=V[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&V(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,i,r){return function(e){var t=b.attr(e,n);return null==t?"!="===i:!i||(t+="","="===i?t===r:"!="===i?t!==r:"^="===i?r&&0===t.indexOf(r):"*="===i?r&&-1(?:<\/\1>|)$/,se=/^.[^:#\[\.,]*$/;J.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?J.find.matchesSelector(i,e)?[i]:[]:J.find.matches(e,J.grep(t,function(e){return 1===e.nodeType}))},J.fn.extend({find:function(e){var t,n=this.length,i=[],r=this;if("string"!=typeof e)return this.pushStack(J(e).filter(function(){for(t=0;t)[^>]*|#([\w-]*))$/;(J.fn.init=function(e,t){var n,i;if(!e)return this;if("string"==typeof e){if(!(n="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:ce.exec(e))||!n[1]&&t)return!t||t.jquery?(t||le).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof J?t[0]:t,J.merge(this,J.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:Y,!0)),ae.test(n[1])&&J.isPlainObject(t))for(n in t)J.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return(i=Y.getElementById(n[2]))&&i.parentNode&&(this.length=1,this[0]=i),this.context=Y,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):J.isFunction(e)?"undefined"!=typeof le.ready?le.ready(e):e(J):(e.selector!==undefined&&(this.selector=e.selector,this.context=e.context),J.makeArray(e,this))}).prototype=J.fn,le=J(Y);var de=/^(?:parents|prev(?:Until|All))/,ue={children:!0,contents:!0,next:!0,prev:!0};J.extend({dir:function(e,t,n){for(var i=[],r=n!==undefined;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&J(e).is(n))break;i.push(e)}return i},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),J.fn.extend({has:function(e){var t=J(e,this),n=t.length;return this.filter(function(){for(var e=0;ex",X.noCloneChecked=!!be.cloneNode(!0).lastChild.defaultValue;var Ee=typeof undefined;X.focusinBubbles="onfocusin"in p;var Pe=/^key/,_e=/^(?:mouse|pointer|contextmenu)|click/,Re=/^(?:focusinfocus|focusoutblur)$/,Le=/^([^.]*)(?:\.(.+)|)$/;J.event={global:{},add:function(t,e,n,i,r){var o,a,s,l,c,d,u,h,f,p,g,m=me.get(t);if(m)for(n.handler&&(n=(o=n).handler,r=o.selector),n.guid||(n.guid=J.guid++),(l=m.events)||(l=m.events={}),(a=m.handle)||(a=m.handle=function(e){return typeof J!==Ee&&J.event.triggered!==e.type?J.event.dispatch.apply(t,arguments):undefined}),c=(e=(e||"").match(fe)||[""]).length;c--;)f=g=(s=Le.exec(e[c])||[])[1],p=(s[2]||"").split(".").sort(),f&&(u=J.event.special[f]||{},f=(r?u.delegateType:u.bindType)||f,u=J.event.special[f]||{},d=J.extend({type:f,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&J.expr.match.needsContext.test(r),namespace:p.join(".")},o),(h=l[f])||((h=l[f]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(t,i,p,a)||t.addEventListener&&t.addEventListener(f,a,!1)),u.add&&(u.add.call(t,d),d.handler.guid||(d.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,d):h.push(d),J.event.global[f]=!0)},remove:function(e,t,n,i,r){var o,a,s,l,c,d,u,h,f,p,g,m=me.hasData(e)&&me.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(fe)||[""]).length;c--;)if(f=g=(s=Le.exec(t[c])||[])[1],p=(s[2]||"").split(".").sort(),f){for(u=J.event.special[f]||{},h=l[f=(i?u.delegateType:u.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)d=h[o],!r&&g!==d.origType||n&&n.guid!==d.guid||s&&!s.test(d.namespace)||i&&i!==d.selector&&("**"!==i||!d.selector)||(h.splice(o,1),d.selector&&h.delegateCount--,u.remove&&u.remove.call(e,d));a&&!h.length&&(u.teardown&&!1!==u.teardown.call(e,p,m.handle)||J.removeEvent(e,f,m.handle),delete l[f])}else for(f in l)J.event.remove(e,f+t[c],n,i,!0);J.isEmptyObject(l)&&(delete m.handle,me.remove(e,"events"))}},trigger:function(e,t,n,i){var r,o,a,s,l,c,d,u=[n||Y],h=K.call(e,"type")?e.type:e,f=K.call(e,"namespace")?e.namespace.split("."):[];if(o=a=n=n||Y,3!==n.nodeType&&8!==n.nodeType&&!Re.test(h+J.event.triggered)&&(0<=h.indexOf(".")&&(h=(f=h.split(".")).shift(),f.sort()),l=h.indexOf(":")<0&&"on"+h,(e=e[J.expando]?e:new J.Event(h,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=f.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=undefined,e.target||(e.target=n),t=null==t?[e]:J.makeArray(t,[e]),d=J.event.special[h]||{},i||!d.trigger||!1!==d.trigger.apply(n,t))){if(!i&&!d.noBubble&&!J.isWindow(n)){for(s=d.delegateType||h,Re.test(s+h)||(o=o.parentNode);o;o=o.parentNode)u.push(o),a=o;a===(n.ownerDocument||Y)&&u.push(a.defaultView||a.parentWindow||p)}for(r=0;(o=u[r++])&&!e.isPropagationStopped();)e.type=1]*)\/>/gi,Ae=/<([\w:]+)/,Ie=/<|&#?\w+;/,Ne=/<(?:script|style|link)/i,$e=/checked\s*(?:[^=]|=\s*.checked.)/i,De=/^$|\/(?:java|ecma)script/i,ze=/^true\/(.*)/,qe=/^\s*\s*$/g,je={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};je.optgroup=je.option,je.tbody=je.tfoot=je.colgroup=je.caption=je.thead,je.th=je.td,J.extend({clone:function(e,t,n){var i,r,o,a,s=e.cloneNode(!0),l=J.contains(e.ownerDocument,e);if(!(X.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||J.isXMLDoc(e)))for(a=w(s),i=0,r=(o=w(e)).length;i")+s[2],c=s[0];c--;)o=o.lastChild;J.merge(u,o.childNodes),(o=d.firstChild).textContent=""}else u.push(t.createTextNode(r));for(d.textContent="",h=0;r=u[h++];)if((!i||-1===J.inArray(r,i))&&(l=J.contains(r.ownerDocument,r),o=w(d.appendChild(r),"script"),l&&v(o),n))for(c=0;r=o[c++];)De.test(r.type||"")&&n.push(r);return d},cleanData:function(e){for(var t,n,i,r,o=J.event.special,a=0;(n=e[a])!==undefined;a++){if(J.acceptData(n)&&(r=n[me.expando])&&(t=me.cache[r])){if(t.events)for(i in t.events)o[i]?J.event.remove(n,i):J.removeEvent(n,i,t.handle);me.cache[r]&&delete me.cache[r]}delete ve.cache[n[ve.expando]]}}}),J.fn.extend({text:function(e){return ge(this,function(e){return e===undefined?J.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||o(this,e).appendChild(e)})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=o(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,i=e?J.filter(e,this):this,r=0;null!=(n=i[r]);r++)t||1!==n.nodeType||J.cleanData(w(n)),n.parentNode&&(t&&J.contains(n.ownerDocument,n)&&v(w(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(J.cleanData(w(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return J.clone(this,e,t)})},html:function(e){return ge(this,function(e){var t=this[0]||{},n=0,i=this.length;if(e===undefined&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ne.test(e)&&!je[(Ae.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(Oe,"<$1>");try{for(;n").prop({async:!0,charset:n.scriptCharset,src:n.url}).on("load error",r=function(e){i.remove(),r=null,e&&t("error"===e.type?404:200,e.type)}),Y.head.appendChild(i[0])},abort:function(){r&&r()}}});var Dt=[],zt=/(=)\?(?=&|$)|\?\?/;J.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Dt.pop()||J.expando+"_"+ft++;return this[e]=!0,e}}),J.ajaxPrefilter("json jsonp",function(e,t,n){var i,r,o,a=!1!==e.jsonp&&(zt.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&zt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=J.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(zt,"$1"+i):!1!==e.jsonp&&(e.url+=(pt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return o||J.error(i+" was not called"),o[0]},e.dataTypes[0]="json",r=p[i],p[i]=function(){o=arguments},n.always(function(){p[i]=r,e[i]&&(e.jsonpCallback=t.jsonpCallback,Dt.push(i)),o&&J.isFunction(r)&&r(o[0]),o=r=undefined}),"script"}),J.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||Y;var i=ae.exec(e),r=!n&&[];return i?[t.createElement(i[1])]:(i=J.buildFragment([e],t,r),r&&r.length&&J(r).remove(),J.merge([],i.childNodes))};var qt=J.fn.load;J.fn.load=function(e,t,n){if("string"!=typeof e&&qt)return qt.apply(this,arguments);var i,r,o,a=this,s=e.indexOf(" ");return 0<=s&&(i=J.trim(e.slice(s)),e=e.slice(0,s)),J.isFunction(t)?(n=t,t=undefined):t&&"object"==typeof t&&(r="POST"),0").append(J.parseHTML(e)).find(i):e)}).complete(n&&function(e,t){a.each(n,o||[e.responseText,t,e])}),this},J.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){J.fn[t]=function(e){return this.on(t,e)}}),J.expr.filters.animated=function(t){return J.grep(J.timers,function(e){return t===e.elem}).length};var jt=p.document.documentElement;J.offset={setOffset:function(e,t,n){var i,r,o,a,s,l,c=J.css(e,"position"),d=J(e),u={};"static"===c&&(e.style.position="relative"),s=d.offset(),o=J.css(e,"top"),l=J.css(e,"left"),("absolute"===c||"fixed"===c)&&-1<(o+l).indexOf("auto")?(a=(i=d.position()).top,r=i.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),J.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(u.top=t.top-s.top+a),null!=t.left&&(u.left=t.left-s.left+r),"using"in t?t.using.call(e,u):d.css(u)}},J.fn.extend({offset:function(t){if(arguments.length)return t===undefined?this:this.each(function(e){J.offset.setOffset(this,t,e)});var e,n,i=this[0],r={top:0,left:0},o=i&&i.ownerDocument;return o?(e=o.documentElement,J.contains(e,i)?(typeof i.getBoundingClientRect!==Ee&&(r=i.getBoundingClientRect()),n=H(o),{top:r.top+n.pageYOffset-e.clientTop,left:r.left+n.pageXOffset-e.clientLeft}):r):void 0},position:function(){if(this[0]){var e,t,n=this[0],i={top:0,left:0};return"fixed"===J.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),J.nodeName(e[0],"html")||(i=e.offset()),i.top+=J.css(e[0],"borderTopWidth",!0),i.left+=J.css(e[0],"borderLeftWidth",!0)),{top:t.top-i.top-J.css(n,"marginTop",!0),left:t.left-i.left-J.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||jt;e&&!J.nodeName(e,"html")&&"static"===J.css(e,"position");)e=e.offsetParent;return e||jt})}}),J.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,r){var o="pageYOffset"===r;J.fn[t]=function(e){return ge(this,function(e,t,n){var i=H(e);if(n===undefined)return i?i[r]:e[t];i?i.scrollTo(o?p.pageXOffset:n,o?n:p.pageYOffset):e[t]=n},t,e,arguments.length,null)}}),J.each(["top","left"],function(e,n){J.cssHooks[n]=S(X.pixelPosition,function(e,t){if(t)return t=y(e,n),Ve.test(t)?J(e).position()[n]+"px":t})}),J.each({Height:"height",Width:"width"},function(o,a){J.each({padding:"inner"+o,content:a,"":"outer"+o},function(i,e){J.fn[e]=function(e,t){var n=arguments.length&&(i||"boolean"!=typeof e),r=i||(!0===e||!0===t?"margin":"border");return ge(this,function(e,t,n){var i;return J.isWindow(e)?e.document.documentElement["client"+o]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+o],i["scroll"+o],e.body["offset"+o],i["offset"+o],i["client"+o])):n===undefined?J.css(e,t,r):J.style(e,t,n,r)},a,n?e:undefined,n,null)}})}),J.fn.size=function(){return this.length},J.fn.andSelf=J.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return J});var Mt=p.jQuery,Ht=p.$;return J.noConflict=function(e){return p.$===J&&(p.$=Ht),e&&p.jQuery===J&&(p.jQuery=Mt),J},typeof e===Ee&&(p.jQuery=p.$=J),J}), /*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */ function(i,E,P,d){var r=P("html"),o=P(i),c=P(E),_=P.fancybox=function(){_.open.apply(this,arguments)},a=navigator.userAgent.match(/msie/i),s=null,l=E.createTouch!==d,u=function(e){return e&&e.hasOwnProperty&&e instanceof P},h=function(e){return e&&"string"===P.type(e)},R=function(e){return h(e)&&0
',image:'',iframe:'",error:'

The requested content cannot be loaded.
Please try again later.

',closeBtn:'',next:'',prev:''},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:P.noop,beforeLoad:P.noop,afterLoad:P.noop,beforeShow:P.noop,afterShow:P.noop,beforeChange:P.noop,beforeClose:P.noop,afterClose:P.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(l,c){if(l&&(P.isPlainObject(c)||(c={}),!1!==_.close(!0)))return P.isArray(l)||(l=u(l)?P(l).get():[l]),P.each(l,function(e,t){var n,i,r,o,a,s={};"object"===P.type(t)&&(t.nodeType&&(t=P(t)),u(t)?(s={href:t.data("fancybox-href")||t.attr("href"),title:t.data("fancybox-title")||t.attr("title"),isDom:!0,element:t},P.metadata&&P.extend(!0,s,t.metadata())):s=t),n=c.href||s.href||(h(t)?t:null),i=c.title!==d?c.title:s.title||"",!(o=(r=c.content||s.content)?"html":c.type||s.type)&&s.isDom&&((o=t.data("fancybox-type"))||(o=(o=t.prop("class").match(/fancybox\.(\w+)/))?o[1]:null)),h(n)&&(o||(_.isImage(n)?o="image":_.isSWF(n)?o="swf":"#"===n.charAt(0)?o="inline":h(t)&&(o="html",r=t)),"ajax"===o&&(n=(a=n.split(/\s+/,2)).shift(),a=a.shift())),r||("inline"===o?n?r=P(h(n)?n.replace(/.*(?=#[^\s]+$)/,""):n):s.isDom&&(r=t):"html"===o?r=n:!o&&!n&&s.isDom&&(o="inline",r=t)),P.extend(s,{href:n,type:o,content:r,title:i,selector:a}),l[e]=s}),_.opts=P.extend(!0,{},_.defaults,c),c.keys!==d&&(_.opts.keys=!!c.keys&&P.extend({},_.defaults.keys,c.keys)),_.group=l,_._start(_.opts.index)},cancel:function(){var e=_.coming;e&&!1!==_.trigger("onCancel")&&(_.hideLoading(),_.ajaxLoad&&_.ajaxLoad.abort(),_.ajaxLoad=null,_.imgPreload&&(_.imgPreload.onload=_.imgPreload.onerror=null),e.wrap&&e.wrap.stop(!0,!0).trigger("onReset").remove(),_.coming=null,_.current||_._afterZoomOut(e))},close:function(e){_.cancel(),!1!==_.trigger("beforeClose")&&(_.unbindEvents(),_.isActive&&(_.isOpen&&!0!==e?(_.isOpen=_.isOpened=!1,_.isClosing=!0,P(".fancybox-item, .fancybox-nav").remove(),_.wrap.stop(!0,!0).removeClass("fancybox-opened"),_.transitions[_.current.closeMethod]()):(P(".fancybox-wrap").stop(!0).trigger("onReset").remove(),_._afterZoomOut())))},play:function(e){var t=function(){clearTimeout(_.player.timer)},n=function(){t(),_.current&&_.player.isActive&&(_.player.timer=setTimeout(_.next,_.current.playSpeed))},i=function(){t(),c.unbind(".player"),_.player.isActive=!1,_.trigger("onPlayEnd")};!0===e||!_.player.isActive&&!1!==e?_.current&&(_.current.loop||_.current.index<_.group.length-1)&&(_.player.isActive=!0,c.bind({"onCancel.player beforeClose.player":i,"onUpdate.player":n,"beforeLoad.player":t}),n(),_.trigger("onPlayStart")):i()},next:function(e){var t=_.current;t&&(h(e)||(e=t.direction.next),_.jumpto(t.index+1,e,"next"))},prev:function(e){var t=_.current;t&&(h(e)||(e=t.direction.prev),_.jumpto(t.index-1,e,"prev"))},jumpto:function(e,t,n){var i=_.current;i&&(e=L(e),_.direction=t||i.direction[e>=i.index?"next":"prev"],_.router=n||"jumpto",i.loop&&(e<0&&(e=i.group.length+e%i.group.length),e%=i.group.length),i.group[e]!==d&&(_.cancel(),_._start(e)))},reposition:function(e,t){var n,i=_.current,r=i?i.wrap:null;r&&(n=_._getPosition(t),e&&"scroll"===e.type?(delete n.position,r.stop(!0,!0).animate(n,200)):(r.css(n),i.pos=P.extend({},i.dim,n)))},update:function(t){var n=t&&t.type,i=!n||"orientationchange"===n;i&&(clearTimeout(s),s=null),_.isOpen&&!s&&(s=setTimeout(function(){var e=_.current;e&&!_.isClosing&&(_.wrap.removeClass("fancybox-tmp"),(i||"load"===n||"resize"===n&&e.autoResize)&&_._setDimension(),"scroll"===n&&e.canShrink||_.reposition(t),_.trigger("onUpdate"),s=null)},i&&!l?0:300))},toggle:function(e){_.isOpen&&(_.current.fitToView="boolean"===P.type(e)?e:!_.current.fitToView,l&&(_.wrap.removeAttr("style").addClass("fancybox-tmp"),_.trigger("onUpdate")),_.update())},hideLoading:function(){c.unbind(".loading"),P("#fancybox-loading").remove()},showLoading:function(){var e,t;_.hideLoading(),e=P('
').click(_.cancel).appendTo("body"),c.bind("keydown.loading",function(e){27===(e.which||e.keyCode)&&(e.preventDefault(),_.cancel())}),_.defaults.fixed||(t=_.getViewport(),e.css({position:"absolute",top:.5*t.h+t.y,left:.5*t.w+t.x}))},getViewport:function(){var e=_.current&&_.current.locked||!1,t={x:o.scrollLeft(),y:o.scrollTop()};return e?(t.w=e[0].clientWidth,t.h=e[0].clientHeight):(t.w=l&&i.innerWidth?i.innerWidth:o.width(),t.h=l&&i.innerHeight?i.innerHeight:o.height()),t},unbindEvents:function(){_.wrap&&u(_.wrap)&&_.wrap.unbind(".fb"),c.unbind(".fb"),o.unbind(".fb")},bindEvents:function(){var t,a=_.current;a&&(o.bind("orientationchange.fb"+(l?"":" resize.fb")+(a.autoCenter&&!a.locked?" scroll.fb":""),_.update),(t=a.keys)&&c.bind("keydown.fb",function(n){var i=n.which||n.keyCode,e=n.target||n.srcElement;if(27===i&&_.coming)return!1;!n.ctrlKey&&!n.altKey&&!n.shiftKey&&!n.metaKey&&(!e||!e.type&&!P(e).is("[contenteditable]"))&&P.each(t,function(e,t){return 1r[0].clientWidth||r[0].clientHeight&&r[0].scrollHeight>r[0].clientHeight),r=P(r).parent();0!==t&&!o&&1<_.group.length&&!a.canShrink&&(0").html(n).find(o.selector):u(n)&&(n.data("fancybox-placeholder")||n.data("fancybox-placeholder",P('
').insertAfter(n).hide()),n=n.show().detach(),o.wrap.bind("onReset",function(){P(this).find(n).length&&n.hide().replaceAll(n.data("fancybox-placeholder")).data("fancybox-placeholder",!1)}));break;case"image":n=o.tpl.image.replace("{href}",i);break;case"swf":n='',r="",P.each(o.swf,function(e,t){n+='',r+=" "+e+'="'+t+'"'}),n+='"}(!u(n)||!n.parent().is(o.inner))&&o.inner.append(n),_.trigger("beforeShow"),o.inner.css("overflow","yes"===t?"scroll":"no"===t?"hidden":t),_._setDimension(),_.reposition(),_.isOpen=!1,_.coming=null,_.bindEvents(),_.isOpened?a.prevMethod&&_.transitions[a.prevMethod]():P(".fancybox-wrap").not(o.wrap).stop(!0).trigger("onReset").remove(),_.transitions[_.isOpened?o.nextMethod:o.openMethod](),_._preloadImages()}},_setDimension:function(){var e,t,n,i,r,o,a,s,l,c=_.getViewport(),d=0,u=!1,h=!1,f=(u=_.wrap,_.skin),p=_.inner,g=_.current,m=(h=g.width,g.height),v=g.minWidth,w=g.minHeight,k=g.maxWidth,b=g.maxHeight,y=g.scrolling,x=g.scrollOutside?g.scrollbarWidth:0,S=g.margin,T=L(S[1]+S[3]),C=L(S[0]+S[2]);if(u.add(f).add(p).width("auto").height("auto").removeClass("fancybox-tmp"),t=T+(S=L(f.outerWidth(!0)-f.width())),n=C+(e=L(f.outerHeight(!0)-f.height())),i=R(h)?(c.w-t)*L(h)/100:h,r=R(m)?(c.h-n)*L(m)/100:m,"iframe"===g.type){if(l=g.content,g.autoHeight&&1===l.data("ready"))try{l[0].contentWindow.document.location&&(p.width(i).height(9999),o=l.contents().find("body"),x&&o.css("overflow-x","hidden"),r=o.outerHeight(!0))}catch(E){}}else(g.autoWidth||g.autoHeight)&&(p.addClass("fancybox-tmp"),g.autoWidth||p.width(i),g.autoHeight||p.height(r),g.autoWidth&&(i=p.width()),g.autoHeight&&(r=p.height()),p.removeClass("fancybox-tmp"));if(h=L(i),m=L(r),s=i/r,v=L(R(v)?L(v,"w")-t:v),k=L(R(k)?L(k,"w")-t:k),w=L(R(w)?L(w,"h")-n:w),o=k,a=b=L(R(b)?L(b,"h")-n:b),g.fitToView&&(k=Math.min(c.w-t,k),b=Math.min(c.h-n,b)),t=c.w-T,C=c.h-C,g.aspectRatio?(k').appendTo(_.coming?_.coming.parent:e.parent),this.fixed=!1,e.fixed&&_.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(e){var t=this;e=P.extend({},this.defaults,e),this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(e),this.fixed||(o.bind("resize.overlay",P.proxy(this.update,this)),this.update()),e.closeClick&&this.overlay.bind("click.overlay",function(e){if(P(e.target).hasClass("fancybox-overlay"))return _.isActive?_.close():t.close(),!1}),this.overlay.css(e.css).show()},close:function(){var e,t;o.unbind("resize.overlay"),this.el.hasClass("fancybox-lock")&&(P(".fancybox-margin").removeClass("fancybox-margin"),e=o.scrollTop(),t=o.scrollLeft(),this.el.removeClass("fancybox-lock"),o.scrollTop(e).scrollLeft(t)),P(".fancybox-overlay").remove().hide(),P.extend(this,{overlay:null,fixed:!1})},update:function(){var e,t="100%";this.overlay.width(t).height("100%"),a?(e=Math.max(E.documentElement.offsetWidth,E.body.offsetWidth),c.width()>e&&(t=c.width())):c.width()>o.width()&&(t=c.width()),this.overlay.width(t).height(c.height())},onReady:function(e,t){var n=this.overlay;P(".fancybox-overlay").stop(!0,!0),n||this.create(e),e.locked&&this.fixed&&t.fixed&&(n||(this.margin=c.height()>o.height()&&P("html").css("margin-right").replace("px","")),t.locked=this.overlay.append(t.wrap),t.fixed=!1),!0===e.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(e,t){var n,i;t.locked&&(!1!==this.margin&&(P("*").filter(function(){return"fixed"===P(this).css("position")&&!P(this).hasClass("fancybox-overlay")&&!P(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),n=o.scrollTop(),i=o.scrollLeft(),this.el.addClass("fancybox-lock"),o.scrollTop(n).scrollLeft(i)),this.open(e)},onUpdate:function(){this.fixed||this.update()},afterClose:function(e){this.overlay&&!_.coming&&this.overlay.fadeOut(e.speedOut,P.proxy(this.close,this))}},_.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(e){var t=_.current,n=t.title,i=e.type;if(P.isFunction(n)&&(n=n.call(t.element,t)),h(n)&&""!==P.trim(n)){switch(t=P('
'+n+"
"),i){case"inside":i=_.skin;break;case"outside":i=_.wrap;break;case"over":i=_.inner;break;default:i=_.skin,t.appendTo("body"),a&&t.width(t.width()),t.wrapInner(''),_.current.margin[2]+=Math.abs(L(t.css("margin-bottom")))}t["top"===e.position?"prependTo":"appendTo"](i)}}},P.fn.fancybox=function(o){var a,s=P(this),l=this.selector||"",e=function(e){var t,n,i=P(this).blur(),r=a;!e.ctrlKey&&!e.altKey&&!e.shiftKey&&!e.metaKey&&!i.is(".fancybox-wrap")&&(t=o.groupAttr||"data-fancybox-group",(n=i.attr(t))||(t="rel",n=i.get(0)[t]),n&&""!==n&&"nofollow"!==n&&(r=(i=(i=l.length?P(l):s).filter("["+t+'="'+n+'"]')).index(this)),o.index=r,!1!==_.open(i,o)&&e.preventDefault())};return a=(o=o||{}).index||0,l&&!1!==o.live?c.undelegate(l,"click.fb-start").delegate(l+":not('.fancybox-item, .fancybox-nav')","click.fb-start",e):s.unbind("click.fb-start").bind("click.fb-start",e),this.filter("[data-fancybox-start=1]").trigger("click"),this},c.ready(function(){var e,t;if(P.scrollbarWidth===d&&(P.scrollbarWidth=function(){var e=P('
').appendTo("body"),t=(t=e.children()).innerWidth()-t.height(99).innerWidth();return e.remove(),t}),P.support.fixedPosition===d){e=P.support;var n=20===(t=P('
').appendTo("body"))[0].offsetTop||15===t[0].offsetTop;t.remove(),e.fixedPosition=n}P.extend(_.defaults,{scrollbarWidth:P.scrollbarWidth(),fixed:P.support.fixedPosition,parent:P("body")}),e=P(i).width(),r.addClass("fancybox-lock-test"),t=P(i).width(),r.removeClass("fancybox-lock-test"),P("").appendTo("head")})}(window,document,jQuery),function(U){var B={mode:"horizontal",slideSelector:"",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:"visible",responsive:!0,slideZIndex:50,wrapperClass:"bx-wrapper",touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,ariaLive:!0,ariaHidden:!0,keyboardEnabled:!1,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4e3,autoStart:!0,autoDirection:"next",stopAutoOnClick:!1,autoHover:!1,autoDelay:0,autoSlideForOnePage:!1,minSlides:1,maxSlides:1,moveSlides:0,slideWidth:0,shrinkItems:!1,onSliderLoad:function(){return!0},onSlideBefore:function(){return!0},onSlideAfter:function(){return!0},onSlideNext:function(){return!0},onSlidePrev:function(){return!0},onSliderResize:function(){return!0}};U.fn.bxSlider=function(t){if(0===this.length)return this;if(1
'),d.viewport=u.parent(),d.settings.ariaLive&&!d.settings.ticker&&d.viewport.attr("aria-live","polite"),d.loader=U('
'),d.viewport.prepend(d.loader),u.css({width:"horizontal"===d.settings.mode?1e3*d.children.length+215+"%":"auto",position:"relative"}),d.usingCSS&&d.settings.easing?u.css("-"+d.cssPrefix+"-transition-timing-function",d.settings.easing):d.settings.easing||(d.settings.easing="swing"),d.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),d.viewport.parent().css({maxWidth:l()}),d.children.css({"float":"horizontal"===d.settings.mode?"left":"none",listStyle:"none",position:"relative"}),d.children.css("width",c()),"horizontal"===d.settings.mode&&0'),d.settings.captions&&x(),d.active.last=d.settings.startSlide===p()-1,d.settings.video&&u.fitVids(),("all"===d.settings.preloadImages||d.settings.ticker)&&(e=d.children),d.settings.ticker?d.settings.pager=!1:(d.settings.controls&&b(),d.settings.auto&&d.settings.autoControls&&y(),d.settings.pager&&k(),(d.settings.controls||d.settings.autoControls||d.settings.pager)&&d.viewport.after(d.controls.el)),a(e,s)},a=function(e,t){var n=e.find('img:not([src=""]), iframe').length,i=0;return 0===n?void t():void e.find('img:not([src=""]), iframe').each(function(){U(this).one("load error",function(){++i===n&&t()}).each(function(){this.complete&&U(this).trigger("load")})})},s=function(){if(d.settings.infiniteLoop&&"fade"!==d.settings.mode&&!d.settings.ticker){var e="vertical"===d.settings.mode?d.settings.minSlides:d.settings.maxSlides,t=d.children.slice(0,e).clone(!0).addClass("bx-clone"),n=d.children.slice(-e).clone(!0).addClass("bx-clone");d.settings.ariaHidden&&(t.attr("aria-hidden",!0),n.attr("aria-hidden",!0)),u.append(t).prepend(n)}d.loader.remove(),m(),"vertical"===d.settings.mode&&(d.settings.adaptiveHeight=!0),d.viewport.height(h()),u.redrawSlider(),d.settings.onSliderLoad.call(u,d.active.index),d.initialized=!0,d.settings.responsive&&U(window).bind("resize",F),d.settings.auto&&d.settings.autoStart&&(1=d.children.length?t.add(d.children.eq(i-1)):t.add(d.children.eq(n+i))}else t=d.children.eq(d.active.index);else t=d.children;return"vertical"===d.settings.mode?(t.each(function(){e+=U(this).outerHeight()}),0t&&!d.carousel||"vertical"===d.settings.mode)e=t;else if(1d.maxThreshold)return e;td.maxThreshold?e=d.settings.maxSlides:(t=d.children.first().width()+d.settings.slideMargin,e=Math.floor((d.viewport.width()+d.settings.slideMargin)/t)):"vertical"===d.settings.mode&&(e=d.settings.minSlides),e},p=function(){var e=0,t=0,n=0;if(0d.settings.maxSlides&&d.active.last&&!d.settings.infiniteLoop?"horizontal"===d.settings.mode?(e=(t=d.children.last()).position(),v(-(e.left-(d.viewport.width()-t.outerWidth())),"reset",0)):"vertical"===d.settings.mode&&(n=d.children.length-d.settings.minSlides,e=d.children.eq(n).position(),v(-e.top,"reset",0)):(e=d.children.eq(d.active.index*g()).position(),d.active.index===p()-1&&(d.active.last=!0),void 0!==e&&("horizontal"===d.settings.mode?v(-e.left,"reset",0):"vertical"===d.settings.mode&&v(-e.top,"reset",0)))},v=function(e,t,n,i){var r,o;d.usingCSS?(o="vertical"===d.settings.mode?"translate3d(0, "+e+"px, 0)":"translate3d("+e+"px, 0, 0)",u.css("-"+d.cssPrefix+"-transition-duration",n/1e3+"s"),"slide"===t?(u.css(d.animProp,o),0!==n?u.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(e){U(e.target).is(u)&&(u.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),R())}):R()):"reset"===t?u.css(d.animProp,o):"ticker"===t&&(u.css("-"+d.cssPrefix+"-transition-timing-function","linear"),u.css(d.animProp,o),0!==n?u.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(e){U(e.target).is(u)&&(u.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),v(i.resetValue,"reset",0),N())}):(v(i.resetValue,"reset",0),N()))):((r={})[d.animProp]=e,"slide"===t?u.animate(r,n,d.settings.easing,function(){R()}):"reset"===t?u.css(d.animProp,e):"ticker"===t&&u.animate(r,n,"linear",function(){v(i.resetValue,"reset",0),N()}))},w=function(){for(var e="",t="",n=p(),i=0;i'+t+"
";d.pagerEl.html(e)},k=function(){d.settings.pagerCustom?d.pagerEl=U(d.settings.pagerCustom):(d.pagerEl=U('
'),d.settings.pagerSelector?U(d.settings.pagerSelector).html(d.pagerEl):d.controls.el.addClass("bx-has-pager").append(d.pagerEl),w()),d.pagerEl.on("click touchend","a",P)},b=function(){d.controls.next=U(''+d.settings.nextText+""),d.controls.prev=U(''+d.settings.prevText+""),d.controls.next.bind("click touchend",S),d.controls.prev.bind("click touchend",T),d.settings.nextSelector&&U(d.settings.nextSelector).append(d.controls.next),d.settings.prevSelector&&U(d.settings.prevSelector).append(d.controls.prev),d.settings.nextSelector||d.settings.prevSelector||(d.controls.directionEl=U('
'),d.controls.directionEl.append(d.controls.prev).append(d.controls.next),d.controls.el.addClass("bx-has-controls-direction").append(d.controls.directionEl))},y=function(){d.controls.start=U('"),d.controls.stop=U('"),d.controls.autoEl=U('
'),d.controls.autoEl.on("click",".bx-start",C),d.controls.autoEl.on("click",".bx-stop",E),d.settings.autoControlsCombine?d.controls.autoEl.append(d.controls.start):d.controls.autoEl.append(d.controls.start).append(d.controls.stop),d.settings.autoControlsSelector?U(d.settings.autoControlsSelector).html(d.controls.autoEl):d.controls.el.addClass("bx-has-controls-auto").append(d.controls.autoEl),L(d.settings.autoStart?"stop":"start")},x=function(){d.children.each(function(){var e=U(this).find("img:first").attr("title");void 0!==e&&(""+e).length&&U(this).append('
'+e+"
")})},S=function(e){e.preventDefault(),d.controls.el.hasClass("disabled")||(d.settings.auto&&d.settings.stopAutoOnClick&&u.stopAuto(),u.goToNextSlide())},T=function(e){e.preventDefault(),d.controls.el.hasClass("disabled")||(d.settings.auto&&d.settings.stopAutoOnClick&&u.stopAuto(),u.goToPrevSlide())},C=function(e){u.startAuto(),e.preventDefault()},E=function(e){u.stopAuto(),e.preventDefault()},P=function(e){var t,n;e.preventDefault(),d.controls.el.hasClass("disabled")||(d.settings.auto&&d.settings.stopAutoOnClick&&u.stopAuto(),void 0!==(t=U(e.currentTarget)).attr("data-slide-index")&&(n=parseInt(t.attr("data-slide-index")))!==d.active.index&&u.goToSlide(n))},_=function(n){var e=d.children.length;return"short"===d.settings.pagerType?(1i.right||n.bottomi.bottom)},D=function(e){var t=document.activeElement.tagName.toLowerCase(),n="input|textarea";if(null==new RegExp(t,["i"]).exec(n)&&$(u)){if(39===e.keyCode)return S(e),!1;if(37===e.keyCode)return T(e),!1}},z=function(){d.touch={start:{x:0,y:0},end:{x:0,y:0}},d.viewport.bind("touchstart MSPointerDown pointerdown",q),d.viewport.on("click",".bxslider a",function(e){d.viewport.hasClass("click-disabled")&&(e.preventDefault(),d.viewport.removeClass("click-disabled"))})},q=function(e){if(d.controls.el.addClass("disabled"),d.working)e.preventDefault(),d.controls.el.removeClass("disabled");else{d.touch.originalPos=u.position();var t=e.originalEvent,n="undefined"!=typeof t.changedTouches?t.changedTouches:[t];d.touch.start.x=n[0].pageX,d.touch.start.y=n[0].pageY,d.viewport.get(0).setPointerCapture&&(d.pointerId=t.pointerId,d.viewport.get(0).setPointerCapture(d.pointerId)),d.viewport.bind("touchmove MSPointerMove pointermove",M),d.viewport.bind("touchend MSPointerUp pointerup",H),d.viewport.bind("MSPointerCancel pointercancel",j)}},j=function(){v(d.touch.originalPos.left,"reset",0),d.controls.el.removeClass("disabled"),d.viewport.unbind("MSPointerCancel pointercancel",j),d.viewport.unbind("touchmove MSPointerMove pointermove",M),d.viewport.unbind("touchend MSPointerUp pointerup",H),d.viewport.get(0).releasePointerCapture&&d.viewport.get(0).releasePointerCapture(d.pointerId)},M=function(e){var t=e.originalEvent,n="undefined"!=typeof t.changedTouches?t.changedTouches:[t],i=Math.abs(n[0].pageX-d.touch.start.x),r=Math.abs(n[0].pageY-d.touch.start.y),o=0,a=0;r<3*i&&d.settings.preventDefaultSwipeX?e.preventDefault():i<3*r&&d.settings.preventDefaultSwipeY&&e.preventDefault(),"fade"!==d.settings.mode&&d.settings.oneToOneTouch&&("horizontal"===d.settings.mode?(a=n[0].pageX-d.touch.start.x,o=d.touch.originalPos.left+a):(a=n[0].pageY-d.touch.start.y,o=d.touch.originalPos.top+a),v(o,"reset",0))},H=function(e){d.viewport.unbind("touchmove MSPointerMove pointermove",M),d.controls.el.removeClass("disabled");var t=e.originalEvent,n="undefined"!=typeof t.changedTouches?t.changedTouches:[t],i=0,r=0;d.touch.end.x=n[0].pageX,d.touch.end.y=n[0].pageY,"fade"===d.settings.mode?(r=Math.abs(d.touch.start.x-d.touch.end.x))>=d.settings.swipeThreshold&&(d.touch.start.x>d.touch.end.x?u.goToNextSlide():u.goToPrevSlide(),u.stopAuto()):("horizontal"===d.settings.mode?(r=d.touch.end.x-d.touch.start.x,i=d.touch.originalPos.left):(r=d.touch.end.y-d.touch.start.y,i=d.touch.originalPos.top),!d.settings.infiniteLoop&&(0===d.active.index&&0=d.settings.swipeThreshold?(r<0?u.goToNextSlide():u.goToPrevSlide(),u.stopAuto()):v(i,"reset",200)),d.viewport.unbind("touchend MSPointerUp pointerup",H),d.viewport.get(0).releasePointerCapture&&d.viewport.get(0).releasePointerCapture(d.pointerId)},F=function(){if(d.initialized)if(d.working)window.setTimeout(F,10);else{var e=U(window).width(),t=U(window).height();n===e&&r===t||(n=e,r=t,u.redrawSlider(),d.settings.onSliderResize.call(u,d.active.index))}},V=function(e){var t=f();d.settings.ariaHidden&&!d.settings.ticker&&(d.children.attr("aria-hidden","true"),d.children.slice(e,e+t).attr("aria-hidden","false"))},W=function(e){return e<0?d.settings.infiniteLoop?p()-1:d.active.index:e>=p()?d.settings.infiniteLoop?0:d.active.index:e};return u.goToSlide=function(e,t){var n,i,r,o,a=!0,s=0,l={left:0,top:0},c=null;if(d.oldIndex=d.active.index,d.active.index=W(e),!d.working&&d.active.index!==d.oldIndex){if(d.working=!0,void 0!==(a=d.settings.onSlideBefore.call(u,d.children.eq(d.active.index),d.oldIndex,d.active.index))&&!a)return d.active.index=d.oldIndex,void(d.working=!1);"next"===t?d.settings.onSlideNext.call(u,d.children.eq(d.active.index),d.oldIndex,d.active.index)||(a=!1):"prev"===t&&(d.settings.onSlidePrev.call(u,d.children.eq(d.active.index),d.oldIndex,d.active.index)||(a=!1)),d.active.last=d.active.index>=p()-1,(d.settings.pager||d.settings.pagerCustom)&&_(d.active.index),d.settings.controls&&O(),"fade"===d.settings.mode?(d.settings.adaptiveHeight&&d.viewport.height()!==h()&&d.viewport.animate({height:h()},d.settings.adaptiveHeightSpeed),d.children.filter(":visible").fadeOut(d.settings.speed).css({zIndex:0}),d.children.eq(d.active.index).css("zIndex",d.settings.slideZIndex+1).fadeIn(d.settings.speed,function(){U(this).css("zIndex",d.settings.slideZIndex),R()})):(d.settings.adaptiveHeight&&d.viewport.height()!==h()&&d.viewport.animate({height:h()},d.settings.adaptiveHeightSpeed),!d.settings.infiniteLoop&&d.carousel&&d.active.last?"horizontal"===d.settings.mode?(l=(c=d.children.eq(d.children.length-1)).position(),s=d.viewport.width()-c.outerWidth()):(n=d.children.length-d.settings.minSlides,l=d.children.eq(n).position()):d.carousel&&d.active.last&&"prev"===t?(i=1===d.settings.moveSlides?d.settings.maxSlides-g():(p()-1)*g()-(d.children.length-d.settings.maxSlides),l=(c=u.children(".bx-clone").eq(i)).position()):"next"===t&&0===d.active.index?(l=u.find("> .bx-clone").eq(d.settings.maxSlides).position(),d.active.last=!1):0<=e&&(o=e*parseInt(g()),l=d.children.eq(o).position()),void 0!==l?(r="horizontal"===d.settings.mode?-(l.left-s):-l.top,v(r,"slide",d.settings.speed)):d.working=!1),d.settings.ariaHidden&&V(d.active.index*g())}},u.goToNextSlide=function(){if(d.settings.infiniteLoop||!d.active.last){var e=parseInt(d.active.index)+1;u.goToSlide(e,"next")}},u.goToPrevSlide=function(){if(d.settings.infiniteLoop||0!==d.active.index){var e=parseInt(d.active.index)-1;u.goToSlide(e,"prev")}},u.startAuto=function(e){d.interval||(d.interval=setInterval(function(){"next"===d.settings.autoDirection?u.goToNextSlide():u.goToPrevSlide()},d.settings.pause),d.settings.autoControls&&!0!==e&&L("stop"))},u.stopAuto=function(e){d.interval&&(clearInterval(d.interval),d.interval=null,d.settings.autoControls&&!0!==e&&L("start"))},u.getCurrentSlide=function(){return d.active.index},u.getCurrentSlideElement=function(){return d.children.eq(d.active.index)},u.getSlideElement=function(e){return d.children.eq(e)},u.getSlideCount=function(){return d.children.length},u.isWorking=function(){return d.working},u.redrawSlider=function(){d.children.add(u.find(".bx-clone")).outerWidth(c()),d.viewport.css("height",h()),d.settings.ticker||m(),d.active.last&&(d.active.index=p()-1),d.active.index>=p()&&(d.active.last=!0),d.settings.pager&&!d.settings.pagerCustom&&(w(),_(d.active.index)),d.settings.ariaHidden&&V(d.active.index*g())},u.destroySlider=function(){d.initialized&&(d.initialized=!1,U(".bx-clone",this).remove(),d.children.each(function(){void 0!==U(this).data("origStyle")?U(this).attr("style",U(this).data("origStyle")):U(this).removeAttr("style")}),void 0!==U(this).data("origStyle")?this.attr("style",U(this).data("origStyle")):U(this).removeAttr("style"),U(this).unwrap().unwrap(),d.controls.el&&d.controls.el.remove(),d.controls.next&&d.controls.next.remove(),d.controls.prev&&d.controls.prev.remove(),d.pagerEl&&d.settings.controls&&!d.settings.pagerCustom&&d.pagerEl.remove(),U(".bx-caption",this).remove(),d.controls.autoEl&&d.controls.autoEl.remove(),clearInterval(d.interval),d.settings.responsive&&U(window).unbind("resize",F),d.settings.keyboardEnabled&&U(document).unbind("keydown",D),U(this).removeData("bxSlider"))},u.reloadSlider=function(e){void 0!==e&&(t=e),u.destroySlider(),o(),U(u).data("bxSlider",this)},o(),U(u).data("bxSlider",this),this}}}(jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):e(jQuery)}(function(d){d.extend(d.fn,{validate:function(e){if(this.length){var i=d.data(this[0],"validator");return i||(this.attr("novalidate","novalidate"),i=new d.validator(e,this[0]),d.data(this[0],"validator",i),i.settings.onsubmit&&(this.on("click.validate",":submit",function(e){i.settings.submitHandler&&(i.submitButton=e.target),d(this).hasClass("cancel")&&(i.cancelSubmit=!0),void 0!==d(this).attr("formnovalidate")&&(i.cancelSubmit=!0)}),this.on("submit.validate",function(n){function e(){var e,t;return!i.settings.submitHandler||(i.submitButton&&(e=d("").attr("name",i.submitButton.name).val(d(i.submitButton).val()).appendTo(i.currentForm)),t=i.settings.submitHandler.call(i,i.currentForm,n),i.submitButton&&e.remove(),void 0!==t&&t)}return i.settings.debug&&n.preventDefault(),i.cancelSubmit?(i.cancelSubmit=!1,e()):i.form()?i.pendingRequest?!(i.formSubmitted=!0):e():(i.focusInvalid(),!1)})),i)}e&&e.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing.")},valid:function(){var e,t,n;return d(this[0]).is("form")?e=this.validate().form():(n=[],e=!0,t=d(this[0].form).validate(),this.each(function(){(e=t.element(this)&&e)||(n=n.concat(t.errorList))}),t.errorList=n),e},rules:function(e,t){if(this.length){var n,i,r,o,a,s,l=this[0];if(e)switch(n=d.data(l.form,"validator").settings,i=n.rules,r=d.validator.staticRules(l),e){case"add":d.extend(r,d.validator.normalizeRule(t)),delete r.messages,i[l.name]=r,t.messages&&(n.messages[l.name]=d.extend(n.messages[l.name],t.messages));break;case"remove":return t?(s={},d.each(t.split(/\s/),function(e,t){s[t]=r[t],delete r[t],"required"===t&&d(l).removeAttr("aria-required")}),s):(delete i[l.name],r)}return(o=d.validator.normalizeRules(d.extend({},d.validator.classRules(l),d.validator.attributeRules(l),d.validator.dataRules(l),d.validator.staticRules(l)),l)).required&&(a=o.required,delete o.required,o=d.extend({required:a},o),d(l).attr("aria-required","true")),o.remote&&(a=o.remote,delete o.remote,o=d.extend(o,{remote:a})),o}}}),d.extend(d.expr[":"],{blank:function(e){return!d.trim(""+d(e).val())},filled:function(e){var t=d(e).val();return null!==t&&!!d.trim(""+t)},unchecked:function(e){return!d(e).prop("checked")}}),d.validator=function(e,t){this.settings=d.extend(!0,{},d.validator.defaults,e),this.currentForm=t,this.init()},d.validator.format=function(n,e){return 1===arguments.length?function(){var e=d.makeArray(arguments);return e.unshift(n),d.validator.format.apply(this,e)}:(void 0===e||(2Warning: No message defined for "+e.name+""),i=/\$?\{(\d+)\}/g;return"function"==typeof n?n=n.call(this,t.parameters,e):i.test(n)&&(n=d.validator.format(n.replace(i,"{$1}"),t.parameters)),n},formatAndAdd:function(e,t){var n=this.defaultMessage(e,t);this.errorList.push({message:n,element:e,method:t.method}),this.errorMap[e.name]=n,this.submitted[e.name]=n},addWrapper:function(e){return this.settings.wrapper&&(e=e.add(e.parent(this.settings.wrapper))),e},defaultShowErrors:function(){var e,t,n;for(e=0;this.errorList[e];e++)n=this.errorList[e],this.settings.highlight&&this.settings.highlight.call(this,n.element,this.settings.errorClass,this.settings.validClass),this.showLabel(n.element,n.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(e=0;this.successList[e];e++)this.showLabel(this.successList[e]);if(this.settings.unhighlight)for(e=0,t=this.validElements();t[e];e++)this.settings.unhighlight.call(this,t[e],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return d(this.errorList).map(function(){return this.element})},showLabel:function(e,t){var n,i,r,o,a=this.errorsFor(e),s=this.idOrName(e),l=d(e).attr("aria-describedby");a.length?(a.removeClass(this.settings.validClass).addClass(this.settings.errorClass),a.html(t)):(n=a=d("<"+this.settings.errorElement+">").attr("id",s+"-error").addClass(this.settings.errorClass).html(t||""),this.settings.wrapper&&(n=a.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(n):this.settings.errorPlacement?this.settings.errorPlacement(n,d(e)):n.insertAfter(e),a.is("label")?a.attr("for",s):0===a.parents("label[for='"+this.escapeCssMeta(s)+"']").length&&(r=a.attr("id"),l?l.match(new RegExp("\\b"+this.escapeCssMeta(r)+"\\b"))||(l+=" "+r):l=r,d(e).attr("aria-describedby",l),(i=this.groups[e.name])&&(o=this,d.each(o.groups,function(e,t){t===i&&d("[name='"+o.escapeCssMeta(e)+"']",o.currentForm).attr("aria-describedby",a.attr("id"))})))),!t&&this.settings.success&&(a.text(""),"string"==typeof this.settings.success?a.addClass(this.settings.success):this.settings.success(a,e)),this.toShow=this.toShow.add(a)},errorsFor:function(e){var t=this.escapeCssMeta(this.idOrName(e)),n=d(e).attr("aria-describedby"),i="label[for='"+t+"'], label[for='"+t+"'] *";return n&&(i=i+", #"+this.escapeCssMeta(n).replace(/\s+/g,", #")),this.errors().filter(i)},escapeCssMeta:function(e){return e.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(e){return this.groups[e.name]||(this.checkable(e)?e.name:e.id||e.name)},validationTargetFor:function(e){return this.checkable(e)&&(e=this.findByName(e.name)),d(e).not(this.settings.ignore)[0]},checkable:function(e){return/radio|checkbox/i.test(e.type)},findByName:function(e){return d(this.currentForm).find("[name='"+this.escapeCssMeta(e)+"']")},getLength:function(e,t){switch(t.nodeName.toLowerCase()){case"select":return d("option:selected",t).length;case"input":if(this.checkable(t))return this.findByName(t.name).filter(":checked").length}return e.length},depend:function(e,t){return!this.dependTypes[typeof e]||this.dependTypes[typeof e](e,t)},dependTypes:{"boolean":function(e){return e},string:function(e,t){return!!d(e,t.form).length},"function":function(e,t){return e(t)}},optional:function(e){var t=this.elementValue(e);return!d.validator.methods.required.call(this,t,e)&&"dependency-mismatch"},startRequest:function(e){this.pending[e.name]||(this.pendingRequest++,d(e).addClass(this.settings.pendingClass),this.pending[e.name]=!0)},stopRequest:function(e,t){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[e.name],d(e).removeClass(this.settings.pendingClass),t&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(d(this.currentForm).submit(),this.formSubmitted=!1):!t&&0===this.pendingRequest&&this.formSubmitted&&(d(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(e,t){return d.data(e,"previousValue")||d.data(e,"previousValue",{old:null,valid:!0,message:this.defaultMessage(e,{method:t})})},destroy:function(){this.resetForm(),d(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(e,t){e.constructor===String?this.classRuleSettings[e]=t:d.extend(this.classRuleSettings,e)},classRules:function(e){var t={},n=d(e).attr("class");return n&&d.each(n.split(" "),function(){this in d.validator.classRuleSettings&&d.extend(t,d.validator.classRuleSettings[this])}),t},normalizeAttributeRule:function(e,t,n,i){/min|max|step/.test(n)&&(null===t||/number|range|text/.test(t))&&(i=Number(i),isNaN(i)&&(i=void 0)),i||0===i?e[n]=i:t===n&&"range"!==t&&(e[n]=!0)},attributeRules:function(e){var t,n,i={},r=d(e),o=e.getAttribute("type");for(t in d.validator.methods)"required"===t?(""===(n=e.getAttribute(t))&&(n=!0),n=!!n):n=r.attr(t),this.normalizeAttributeRule(i,o,t,n);return i.maxlength&&/-1|2147483647|524288/.test(i.maxlength)&&delete i.maxlength,i},dataRules:function(e){var t,n,i={},r=d(e),o=e.getAttribute("type");for(t in d.validator.methods)n=r.data("rule"+t.charAt(0).toUpperCase()+t.substring(1).toLowerCase()),this.normalizeAttributeRule(i,o,t,n);return i},staticRules:function(e){var t={},n=d.data(e.form,"validator");return n.settings.rules&&(t=d.validator.normalizeRule(n.settings.rules[e.name])||{}),t},normalizeRules:function(i,r){return d.each(i,function(e,t){if(!1!==t){if(t.param||t.depends){var n=!0;switch(typeof t.depends){case"string":n=!!d(t.depends,r.form).length;break;case"function":n=t.depends.call(r,r)}n?i[e]=void 0===t.param||t.param:(d.data(r.form,"validator").resetElements(d(r)),delete i[e])}}else delete i[e]}),d.each(i,function(e,t){i[e]=d.isFunction(t)&&"normalizer"!==e?t(r):t}),d.each(["minlength","maxlength"],function(){i[this]&&(i[this]=Number(i[this]))}),d.each(["rangelength","range"],function(){var e;i[this]&&(d.isArray(i[this])?i[this]=[Number(i[this][0]),Number(i[this][1])]:"string"==typeof i[this]&&(e=i[this].replace(/[\[\]]/g,"").split(/[\s,]+/),i[this]=[Number(e[0]),Number(e[1])]))}),d.validator.autoCreateRanges&&(null!=i.min&&null!=i.max&&(i.range=[i.min,i.max],delete i.min,delete i.max),null!=i.minlength&&null!=i.maxlength&&(i.rangelength=[i.minlength,i.maxlength],delete i.minlength,delete i.maxlength)),i},normalizeRule:function(e){if("string"==typeof e){var t={};d.each(e.split(/\s/),function(){t[this]=!0}),e=t}return e},addMethod:function(e,t,n){d.validator.methods[e]=t,d.validator.messages[e]=void 0!==n?n:d.validator.messages[e],t.length<3&&d.validator.addClassRules(e,d.validator.normalizeRule(e))},methods:{required:function(e,t,n){if(!this.depend(n,t))return"dependency-mismatch";if("select"===t.nodeName.toLowerCase()){var i=d(t).val();return i&&0=n[0]&&i<=n[1]},min:function(e,t,n){return this.optional(t)||n<=e},max:function(e,t,n){return this.optional(t)||e<=n},range:function(e,t,n){return this.optional(t)||e>=n[0]&&e<=n[1]},step:function(e,t,n){var i=d(t).attr("type"),r="Step attribute on input type "+i+" is not supported.",o=["text","number","range"],a=new RegExp("\\b"+i+"\\b");if(i&&!a.test(o.join()))throw new Error(r);return this.optional(t)||e%n==0},equalTo:function(e,t,n){var i=d(n);return this.settings.onfocusout&&i.not(".validate-equalTo-blur").length&&i.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){d(t).valid()}),e===i.val()},remote:function(o,a,e,s){if(this.optional(a))return"dependency-mismatch";s="string"==typeof s&&s||"remote";var l,t,n,c=this.previousValue(a,s);return this.settings.messages[a.name]||(this.settings.messages[a.name]={}),c.originalMessage=c.originalMessage||this.settings.messages[a.name][s],this.settings.messages[a.name][s]=c.message,e="string"==typeof e&&{url:e}||e,n=d.param(d.extend({data:o},e.data)),c.old===n?c.valid:(c.old=n,(l=this).startRequest(a),(t={})[a.name]=o,d.ajax(d.extend(!0,{mode:"abort",port:"validate"+a.name,dataType:"json",data:t,context:l.currentForm,success:function(e){var t,n,i,r=!0===e||"true"===e;l.settings.messages[a.name][s]=c.originalMessage,r?(i=l.formSubmitted,l.resetInternals(),l.toHide=l.errorsFor(a),l.formSubmitted=i,l.successList.push(a),l.invalid[a.name]=!1,l.showErrors()):(t={},n=e||l.defaultMessage(a,{method:s,parameters:o}),t[a.name]=c.message=n,l.invalid[a.name]=!0,l.showErrors(t)),c.valid=r,l.stopRequest(a,r)}},e)),"pending")}}});var i,r={};d.ajaxPrefilter?d.ajaxPrefilter(function(e,t,n){var i=e.port;"abort"===e.mode&&(r[i]&&r[i].abort(),r[i]=n)}):(i=d.ajax,d.ajax=function(e){var t=("mode"in e?e:d.ajaxSettings).mode,n=("port"in e?e:d.ajaxSettings).port;return"abort"===t?(r[n]&&r[n].abort(),r[n]=i.apply(this,arguments),r[n]):i.apply(this,arguments)})}),$.extend($.validator.messages,{required:"Este campo é requerido.",remote:"Por favor, corrija este campo.",email:"Por favor, forneça um endereço de email válido.",url:"Por favor, forneça uma URL válida.",date:"Por favor, forneça uma data válida.",dateISO:"Por favor, forneça uma data válida (ISO).",number:"Por favor, forneça um número válido.",digits:"Por favor, forneça somente dígitos.",creditcard:"Por favor, forneça um cartão de crédito válido.",equalTo:"Por favor, forneça o mesmo valor novamente.",maxlength:$.validator.format("Por favor, forneça não mais que {0} caracteres."),minlength:$.validator.format("Por favor, forneça ao menos {0} caracteres."),rangelength:$.validator.format("Por favor, forneça um valor entre {0} e {1} caracteres de comprimento."),range:$.validator.format("Por favor, forneça um valor entre {0} e {1}."),max:$.validator.format("Por favor, forneça um valor menor ou igual a {0}."),min:$.validator.format("Por favor, forneça um valor maior ou igual a {0}."),maxWords:$.validator.format("Por favor, forneça com {0} palavras ou menos."),minWords:$.validator.format("Por favor, forneça pelo menos {0} palavras."),rangeWords:$.validator.format("Por favor, forneça entre {0} e {1} palavras."),accept:"Por favor, forneça um tipo válido.",alphanumeric:"Por favor, forneça somente com letras, números e sublinhados.",bankaccountNL:"Por favor, forneça com um número de conta bancária válida.",bankorgiroaccountNL:"Por favor, forneça um banco válido ou número de conta.",bic:"Por favor, forneça um código BIC válido.",cifES:"Por favor, forneça um código CIF válido.",creditcardtypes:"Por favor, forneça um número de cartão de crédito válido.",currency:"Por favor, forneça uma moeda válida.",dateFA:"Por favor, forneça uma data correta.",dateITA:"Por favor, forneça uma data correta.",dateNL:"Por favor, forneça uma data correta.",extension:"Por favor, forneça um valor com uma extensão válida.",giroaccountNL:"Por favor, forneça um número de conta corrente válido.",iban:"Por favor, forneça um código IBAN válido.",integer:"Por favor, forneça um número não decimal.",ipv4:"Por favor, forneça um IPv4 válido.",ipv6:"Por favor, forneça um IPv6 válido.",lettersonly:"Por favor, forneça apenas com letras.",letterswithbasicpunc:"Por favor, forneça apenas letras ou pontuaç\xf5es.",mobileNL:"Por favor, forneceça um número válido de telefone.",mobileUK:"Por favor, forneceça um número válido de telefone.",nieES:"Por favor, forneça um NIE válido.",nifES:"Por favor, forneça um NIF válido.",nowhitespace:"Por favor, não utilize espaços em branco.",pattern:"O formato fornenecido é inválido.",phoneNL:"Por favor, forneceça um número de telefone válido.",phoneUK:"Por favor, forneceça um número de telefone válido.",phoneUS:"Por favor, forneceça um número de telefone válido.",phonesUK:"Por favor, forneceça um número de telefone válido.",postalCodeCA:"Por favor, forneceça um número de código postal válido.",postalcodeIT:"Por favor, forneceça um número de código postal válido.",postalcodeNL:"Por favor, forneceça um número de código postal válido.",postcodeUK:"Por favor, forneceça um número de código postal válido.",postalcodeBR:"Por favor, forneça um CEP válido.",require_from_group:$.validator.format("Por favor, forneça pelo menos {0} destes campos."),skip_or_fill_minimum:$.validator.format("Por favor, optar entre ignorar esses campos ou preencher pelo menos {0} deles."),stateUS:"Por favor, forneça um estado válido.",strippedminlength:$.validator.format("Por favor, forneça pelo menos {0} caracteres."),time:"Por favor, forneça um horário válido, no intervado de 00:00 e 23:59.",time12h:"Por favor, forneça um horário válido, no intervado de 01:00 e 12:59 am/pm.",url2:"Por favor, forneceça uma URL válida.",vinUS:"O número de identificação de veículo informada (VIN) é inválido.",zipcodeUS:"Por favor, forneceça um código postal americano válido.",ziprange:"O código postal deve estar entre 902xx-xxxx e 905xx-xxxx",cpfBR:"Por favor, forneça um CPF válido."}),function(e){function o(e,t,n,i,r){this._listener=t,this._isOnce=n,this.context=i,this._signal=e,this._priority=r||0}function i(e,t){if("function"!=typeof e)throw Error("listener is a required param of {fn}() and should be a Function.".replace("{fn}",t))}function t(){this._bindings=[],this._prevParams=null;var e=this;this.dispatch=function(){t.prototype.dispatch.apply(e,arguments)}}o.prototype={active:!0,params:null,execute:function(e){var t;return this.active&&this._listener&&(e=this.params?this.params.concat(e):e,t=this._listener.apply(this.context,e),this._isOnce&&this.detach()),t},detach:function(){return this.isBound()?this._signal.remove(this._listener,this.context):null},isBound:function(){return!!this._signal&&!!this._listener},isOnce:function(){return this._isOnce},getListener:function(){return this._listener},getSignal:function(){return this._signal},_destroy:function(){delete this._signal,delete this._listener,delete this.context},toString:function(){return"[SignalBinding isOnce:"+this._isOnce+", isBound:"+this.isBound()+", active:"+this.active+"]"}},t.prototype={VERSION:"1.0.0",memorize:!1,_shouldPropagate:!0,active:!0,_registerListener:function(e,t,n,i){var r=this._indexOfListener(e,n);if(-1!==r){if((e=this._bindings[r]).isOnce()!==t)throw Error("You cannot add"+(t?"":"Once")+"() then add"+(t?"Once":"")+"() the same listener without removing the relationship first.")}else e=new o(this,e,t,n,i),this._addBinding(e);return this.memorize&&this._prevParams&&e.execute(this._prevParams),e},_addBinding:function(e){for(var t=this._bindings.length;--t,this._bindings[t]&&e._priority<=this._bindings[t]._priority;);this._bindings.splice(t+1,0,e)},_indexOfListener:function(e,t){for(var n,i=this._bindings.length;i--;)if((n=this._bindings[i])._listener===e&&n.context===t)return i;return-1},has:function(e,t){return-1!==this._indexOfListener(e,t)},add:function(e,t,n){return i(e,"add"),this._registerListener(e,!1,t,n)},addOnce:function(e,t,n){return i(e,"addOnce"),this._registerListener(e,!0,t,n)},remove:function(e,t){i(e,"remove");var n=this._indexOfListener(e,t);return-1!==n&&(this._bindings[n]._destroy(),this._bindings.splice(n,1)),e},removeAll:function(){for(var e=this._bindings.length;e--;)this._bindings[e]._destroy();this._bindings.length=0},getNumListeners:function(){return this._bindings.length},halt:function(){this._shouldPropagate=!1},dispatch:function(){if(this.active){var e,t=Array.prototype.slice.call(arguments),n=this._bindings.length;if(this.memorize&&(this._prevParams=t),n)for(e=this._bindings.slice(),this._shouldPropagate=!0;e[--n]&&this._shouldPropagate&&!1!==e[n].execute(t););}},forget:function(){this._prevParams=null},dispose:function(){this.removeAll(),delete this._bindings,delete this._prevParams},toString:function(){return"[Signal active:"+this.active+" numListeners:"+this.getNumListeners()+"]"}};var n=t;n.Signal=t,"function"==typeof define&&define.amd?define(function(){return n}):"undefined"!=typeof module&&module.exports?module.exports=n:e.signals=n}(this), /*! * Hasher * @author Miller Medeiros * @version 1.2.0 (2013/11/11 03:18 PM) * Released under the MIT License */ function(){var e=function(_){return function(t){function n(e){return String(e||"").replace(/\W/g,"\\$&")}function i(e){if(!e)return"";var t=new RegExp("^"+n(h.prependHash)+"|"+n(h.appendHash)+"$","g");return e.replace(t,"")}function r(){var e=y.exec(h.getURL()),t=e&&e[1]||"";try{return h.raw?t:decodeURIComponent(t)}catch(n){return t}}function o(){return m?m.contentWindow.frameHash:null}function e(){(m=k.createElement("iframe")).src="about:blank",m.style.display="none",k.body.appendChild(m)}function a(){if(m&&f!==o()){var e=m.contentWindow.document;e.open(),e.write(""+k.title+' '),e.close()}}function s(e,t){if(f!==e){var n=f;f=e,E&&(t?m.contentWindow.frameHash=e:a()),h.changed.dispatch(i(e),i(n))}}function l(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,n)}function c(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent&&e.detachEvent("on"+t,n)}function d(){var e=Array.prototype.slice.call(arguments).join(h.separator);return e?h.prependHash+e.replace(S,"")+h.appendHash:e}function u(e){return e=encodeURI(e),T&&P&&(e=e.replace(/\?/,"%3F")),e}var h,f,p,g,m,v,w=25,k=t.document,b=(t.history,_.Signal),y=/#(.*)$/,x=/(\?.*)|(\#.*)/,S=/^\#/,T=!1,C="onhashchange"in t&&7!==k.documentMode,E=T&&!C,P="file:"===location.protocol;return v=E?function(){var e=r(),t=o();t!==f&&t!==e?h.setHash(i(t)):e!==f&&s(e)}:function(){var e=r();e!==f&&s(e)},(h={VERSION:"1.2.0",raw:!1,appendHash:"",prependHash:"/",separator:"/",changed:new b,stopped:new b,initialized:new b,init:function(){g||(f=r(),C?l(t,"hashchange",v):(E&&(m||e(),a()),p=setInterval(v,w)),g=!0,h.initialized.dispatch(i(f)))},stop:function(){g&&(C?c(t,"hashchange",v):(clearInterval(p),p=null),g=!1,h.stopped.dispatch(i(f)))},isActive:function(){return g},getURL:function(){return t.location.href},getBaseURL:function(){return h.getURL().replace(x,"")},setHash:function(e){(e=d.apply(null,arguments))!==f&&(s(e),e===f&&(h.raw||(e=u(e)),t.location.hash="#"+e))},replaceHash:function(e){(e=d.apply(null,arguments))!==f&&(s(e,!0),e===f&&(h.raw||(e=u(e)),t.location.replace("#"+e)))},getHash:function(){return i(f)},getHashAsArray:function(){return h.getHash().split(h.separator)},dispose:function(){h.stop(),h.initialized.dispose(),h.stopped.dispose(),h.changed.dispose(),m=h=t.hasher=null},toString:function(){return'[hasher version="'+h.VERSION+'" hash="'+h.getHash()+'"]'}}).initialized.memorize=!0,h}(window)};"function"==typeof define&&define.amd?define(["signals"],e):"object"==typeof exports?module.exports=e(require("signals")):window.hasher=e(window.signals)}(),function(){var e=function(a){function s(e,t){if(e.indexOf)return e.indexOf(t);for(var n=e.length;n--;)if(e[n]===t)return n;return-1}function t(e,t){var n=s(e,t);-1!==n&&e.splice(n,1)}function n(e,t){return"[object "+t+"]"===Object.prototype.toString.call(e)}function l(e){return n(e,"RegExp")}function v(e){return n(e,"Array")}function c(e){return"function"==typeof e}function d(e){return null===e||"null"===e?null:"true"===e||"false"!==e&&(e===o||"undefined"===e?o:""===e||isNaN(e)?e:parseFloat(e))}function w(e){for(var t=e.length,n=[];t--;)n[t]=d(e[t]);return n}function u(e,t){for(var n,i,r,o,a=(e||"").replace("?","").split("&"),s=-1,l={};i=a[++s];)n=i.indexOf("="),o=i.substring(0,n),r=decodeURIComponent(i.substring(n+1)),!1!==t&&(r=d(r)),o in l?v(l[o])?l[o].push(r):l[o]=[l[o],r]:l[o]=r;return l}function e(){this.bypassed=new a.Signal,this.routed=new a.Signal,this._routes=[],this._prevRoutes=[],this._piped=[],this.resetState()}function r(e,t,n,i){var r=l(e),o=i.patternLexer;this._router=i,this._pattern=e,this._paramsIds=r?null:o.getParamIds(e),this._optionalParamsIds=r?null:o.getOptionalParamsIds(e),this._matchRegexp=r?e:o.compilePattern(e,i.ignoreCase),this.matched=new a.Signal,this.switched=new a.Signal,t&&this.matched.add(t),this._priority=n||0}var i,h,o;return h=""===/t(.+)?/.exec("t")[1],e.prototype={greedy:!1,greedyEnabled:!0,ignoreCase:!0,ignoreState:!1,shouldTypecast:!1,normalizeFn:null,resetState:function(){this._prevRoutes.length=0,this._prevMatchedRequest=null,this._prevBypassedRequest=null},create:function(){return new e},addRoute:function(e,t,n){var i=new r(e,t,n,this);return this._sortedInsert(i),i},removeRoute:function(e){t(this._routes,e),e._destroy()},removeAllRoutes:function(){for(var e=this.getNumRoutes();e--;)this._routes[e]._destroy();this._routes.length=0},parse:function(e,t){if(e=e||"",t=t||[],this.ignoreState||e!==this._prevMatchedRequest&&e!==this._prevBypassedRequest){var n,i=this._getMatchedRoutes(e),r=0,o=i.length;if(o)for(this._prevMatchedRequest=e,this._notifyPrevRoutes(i,e),this._prevRoutes=i;r=this.finalDate,this.offset={seconds:this.totalSecsLeft%60,minutes:Math.floor(this.totalSecsLeft/60)%60,hours:Math.floor(this.totalSecsLeft/60/60)%24,days:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToWeek:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToMonth:Math.floor(this.totalSecsLeft/60/60/24%30.4368),weeks:Math.floor(this.totalSecsLeft/60/60/24/7),weeksToMonth:Math.floor(this.totalSecsLeft/60/60/24/7)%4,months:Math.floor(this.totalSecsLeft/60/60/24/30.4368),years:Math.abs(this.finalDate.getFullYear()-n.getFullYear()),totalDays:Math.floor(this.totalSecsLeft/60/60/24),totalHours:Math.floor(this.totalSecsLeft/60/60),totalMinutes:Math.floor(this.totalSecsLeft/60),totalSeconds:this.totalSecsLeft},this.options.elapse||0!==this.totalSecsLeft?this.dispatchEvent("update"):(this.stop(),this.dispatchEvent("finish")))}else this.remove()},dispatchEvent:function(e){var t=r.Event(e+".countdown");t.finalDate=this.finalDate,t.elapsed=this.elapsed,t.offset=r.extend({},this.offset),t.strftime=n(this.offset),this.$el.trigger(t)}}),r.fn.countdown=function(){var i=Array.prototype.slice.call(arguments,0);return this.each(function(){var e=r(this).data("countdown-instance");if(void 0!==e){var t=o[e],n=i[0];s.prototype.hasOwnProperty(n)?t[n].apply(t,i.slice(1)):null===String(n).match(/^[$A-Z_][0-9A-Z_$]*$/i)?(t.setFinalDate.call(t,n),t.start()):r.error("Method %s does not exist on jQuery.countdown".replace(/\%s/gi,n))}else new s(this,i[0],i[1])})}}),function(e,n){if("function"==typeof define&&define.amd)define(["exports","jquery"],function(e,t){return n(e,t)});else if("undefined"!=typeof exports){var t=require("jquery");n(exports,t)}else n(e,e.jQuery||e.Zepto||e.ender||e.$)}(this,function(e,h){function t(i,t){function r(e,t,n){return e[t]=n,e}function n(e,t){for(var n,i=e.match(f.key);void 0!==(n=i.pop());)f.push.test(n)?t=r([],o(e.replace(/\[\]$/,"")),t):f.fixed.test(n)?t=r([],n,t):f.named.test(n)&&(t=r({},n,t));return t}function o(e){return void 0===u[e]&&(u[e]=0),u[e]++}function a(e){switch(h('[name="'+e.name+'"]',t).attr("type")){case"checkbox":return"on"===e.value||e.value;default:return e.value}}function e(e){if(!f.validate.test(e.name))return this;var t=n(e.name,a(e));return d=i.extend(!0,d,t),this}function s(e){if(!i.isArray(e))throw new Error("formSerializer.addPairs expects an Array");for(var t=0,n=e.length;t
'};t.toSales=function(){var e='
',t='
Nenhuma p\xe1gina de venda informada :(
Por favor, informe uma p\xe1gina de venda.
';try{klickart.helpers.redirect.to(klickart.launchblog.options.salesPage.uri)}catch(i){document.body.innerHTML=n.LOGO_HTML+e+t,klickart.launchblog.$html.show()}},t.toRegistration=function(){var e='
',t='
Nenhuma p\xe1gina de prote\xe7\xe3o configurada :(
Por favor, informe uma p\xe1gina de prote\xe7\xe3o.
';try{klickart.helpers.redirect.to(klickart.launchblog.options.registrationPage.uri)}catch(i){document.body.innerHTML=n.LOGO_HTML+e+t,klickart.launchblog.$html.show()}},t.toNoEnabledVideo=function(){var e='
',t='
Nenhum v\xeddeo foi habilitado :(
Por favor, configure ao menos um v\xeddeo.
';document.body.innerHTML=n.LOGO_HTML+e+t,klickart.launchblog.$html.show()},t.toVideo=function(e){window.klickart.helpers.queryString.change("?blog="+klickart.launchblog.$blog.attr(klickart.launchblog.configs.ATTR.BLOG_ID)+"&video="+e)},e.redirect=t,window.klickart.launchblog.helpers=e}((window.klickart||(window.klickart={},window.klickart.launchblog)||(window.klickart.launchblog={}))&&window.klickart.launchblog.helpers||(window.klickart.launchblog.helpers={})),function(e){function t(e){var n={},i={},r=klickart.launchblog.configs.ATTR.VIDEO_ID,t=klickart.launchblog.configs.ATTR.VIDEO_OPTIONS,o=e||o;return n.get=function(){var n,e=o.find("["+t+"]["+r+"]"),i={};return e.each(function(e,t){n=$(t),i[n.attr(r)]=new klickart.launchblog.models.video(n,e)}),i},n.getLastAllowed=function(e){var r,t;return{perpetual:function(){return r=null,$.each(klickart.launchblog.videos,function(e,t){(t.isViewed()||0===t.index)&&(r=t)}),r.isViewed()&&(t=n.finbByIndex(r.index+1),r=t||r),r},manual:function(){return r=null,$.each(klickart.launchblog.videos,function(e,t){t.options.enabled&&(r=t)}),r},scheduled:function(){var n,i=DateTimeServer.now();return i instanceof Date||(i=new Date),i=i.getTime(),r=null,$.each(klickart.launchblog.videos,function(e,t){t.options.date&&(n=new Date(t.options.date),videoConfiguredTimezone=t.options.timezone,padZero=function(e){var t=Math.floor(Math.abs(e));return(t<10?"0":"")+t},finalDateString=n.getFullYear()+"-"+padZero(n.getMonth()+1)+"-"+padZero(n.getDate())+"T"+padZero(n.getHours())+":"+padZero(n.getMinutes())+videoConfiguredTimezone,videoDateWithTimeZone=new Date(finalDateString),videoDateWithTimeZone=videoDateWithTimeZone.getTime(),videoDateWithTimeZone<=i&&(r=t))}),r}}[e]()},n.showThumbVideos=function(n,e){return{perpetual:function(){$.each(klickart.launchblog.videos,function(e,t){t.index<=n.index||t.isViewed()?i.showPusblishedThumb(t.$video):i.showNotPusblishedThumb(t)})},manual:function(){$.each(klickart.launchblog.videos,function(e,t){t.isEnabled()?i.showPusblishedThumb(t.$video):i.showNotPusblishedThumb(t)})},scheduled:function(){$.each(klickart.launchblog.videos,function(e,t){klickart.launchblog.handlers.validators.scheduled.validate(t.getId())?i.showPusblishedThumb(t.$video):i.showNotPusblishedThumb(t)})}}[e]()},n.finbByIndex=function(n){var i=null;return $.each(klickart.launchblog.videos,function(e,t){t.index===n&&(i=t)}),i},n.hasAllowed=function(){return"perpetual"===klickart.launchblog.options.type||!!n.getLastAllowed(klickart.launchblog.options.distribution)},i.showPusblishedThumb=function(e){var t=e.find("[klickart-edit-launchblog-video-published]"),n=e.find("[klickart-edit-launchblog-video-unpublished]");0